<div class="pagination">
    <a <?php if ($isFirstPage): ?>class="disabled"<?php endif; ?> href="<?php echo $uri->getLinkAddingParameters(1) ?>">Première page</a>

    <span class="numbers">
        <a <?php if ($isFirstPage): ?>class="disabled"<?php endif; ?> href="<?php echo $uri->getLinkAddingParameters($previousPage) ?>">««</a>

        <?php for ($i = 1; $i <= $nbPages; $i++): ?>
            <a <?php if ($i == $currentPage): ?>class="selected"<?php endif; ?> href="<?php echo $uri->getLinkAddingParameters($i) ?>"><?php echo $i ?></a>
        <?php endfor; ?>

        <a <?php if ($isLastPage): ?>class="disabled"<?php endif; ?> href="<?php echo $uri->getLinkAddingParameters($nextPage) ?>">»»</a>
    </span>
    
    <a <?php if ($isLastPage): ?>class="disabled"<?php endif; ?> href="<?php echo $uri->getLinkAddingParameters($nbPages) ?>">Dernière page</a>
</div>